{extend name='layout/base' /}
{block name='title'}编辑农村家宴{/block}
{block name='contentHeader'}
<h1>
    农村家宴管理
    <small>编辑农村家宴</small>
</h1>
<ol class="breadcrumb">
    <li><a href="#"><i class="fa fa-dashboard"></i> 农村家宴管理</a></li>
    <li class="active">编辑农村家宴</li>
</ol>
{/block}
{block name='content'}
<script src="__PLUGIN__/bootstrapvalidator/js/bootstrapValidator.min.js"></script>
<link rel="stylesheet" href="__PLUGIN__/bootstrapvalidator/css/bootstrapValidator.min.css">
<!-- Horizontal Form -->
<div class="box box-info" style="width:90%;margin: 0 auto;">
    <div class="box-header with-border">
        <h3 class="box-title">农村家宴参数</h3>
    </div>
    <!-- /.box-header -->
    <!-- form start -->
    <form class="form-horizontal" action="" method="post">
        <div class="box-body">
            <div class="form-group">
                <label for="host_name" class="col-sm-2 control-label">举办者姓名</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" id="host_name" name="host_name" value="{$ncjy.host_name}" placeholder="举办者姓名">
                </div>
            </div>
            <div class="form-group">
                <label for="host_tel" class="col-sm-2 control-label">举办者电话</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" id="host_tel" name="host_tel" value="{$ncjy.host_tel}" placeholder="举办者电话">
                </div>
            </div>
            <div class="form-group">
                <label for="host_addr" class="col-sm-2 control-label">举办地</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" id="host_addr" name="host_addr" value="{$ncjy.host_addr}" placeholder="举办地">
                </div>
            </div>
            <div class="form-group">
                <label for="host_date" class="col-sm-2 control-label">举办日期</label>
                <div class="col-sm-10">
                    <input type="date" class="form-control" id="host_date" name="host_date" value="{$ncjy.host_date}" placeholder="举办日期">
                </div>
            </div>
            <div class="form-group">
                <label for="num" class="col-sm-2 control-label">人数</label>
                <div class="col-sm-10">
                    <input type="number" class="form-control" id="num" name="num" value="{$ncjy.num}" placeholder="人数">
                </div>
            </div>
            <div class="form-group">
                <label for="cause" class="col-sm-2 control-label">事由</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" id="cause" name="cause" value="{$ncjy.cause}" placeholder="事由">
                </div>
            </div>
            <div class="form-group">
                <label for="cook_name" class="col-sm-2 control-label">厨师姓名</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" id="cook_name" name="cook_name" value="{$ncjy.cook_name}" placeholder="厨师姓名">
                </div>
            </div>
            <div class="form-group">
                <label for="cook_tel" class="col-sm-2 control-label">厨师电话</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" id="cook_tel" name="cook_tel" value="{$ncjy.cook_tel}" placeholder="厨师电话">
                </div>
            </div>
            <div class="form-group">
                <label for="cook_addr" class="col-sm-2 control-label">厨师住址</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" id="cook_addr" name="cook_addr" value="{$ncjy.cook_addr}" placeholder="厨师住址">
                </div>
            </div>
            <div class="form-group">
                <label for="doctor" class="col-sm-2 control-label">指导医师</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" id="doctor" name="doctor" value="{$ncjy.doctor}" placeholder="指导医师">
                </div>
            </div>
        </div>
        <!-- /.box-body -->
        <div class="box-footer">
            <input type="hidden" name="__token__" value="{$Request.token}" />
            <input type="hidden" name="admin_id" value="{$ncjy.admin_id}" />
            <button type="reset" class="btn btn-default">重置</button>
            <button type="submit" class="btn btn-info pull-right">提交</button>
        </div>
        <!-- /.box-footer -->
    </form>
</div>
<script type="text/javascript">
    //jQuery代码
    $(function () {
        $('form').bootstrapValidator({
            message: 'This value is not valid',
            feedbackIcons: {
                valid: 'glyphicon glyphicon-ok',
                invalid: 'glyphicon glyphicon-remove',
                validating: 'glyphicon glyphicon-refresh'
            },
            fields: {
                host_name: {
                    validators: {
                        notEmpty: {
                            message: '举办者姓名必须'
                        }
                    }
                },
                host_tel: {
                    validators: {
                        notEmpty: {
                            message: '举办者电话必须'
                        }
                    }
                }
            }
        });
    });
</script>
{/block}